#include"Stack.h"

test01()
{
	Stack st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);
	printf("Size:%d\n", StackSize(&st));

	while (!StackEmpty(&st))
	{
		STDataType top = StackTop(&st);
		printf("%d ", top);
		StackPop(&st);
	}
	printf("\n");
	StackDestroy(&st);

}

int main()
{
	test01();
	return 0;
}